<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<jsp:include page="../commons/common.jsp" flush="true"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>upload page</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--<link rel="stylesheet" type="text/css" href="styles.css"> -->
    <style type="text/css">
        .view {
            background-color: rgba(2, 28, 255, 0.25);
        }
    </style>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#cancel").click(function () {
                window.location.href = "index.jsp"
            });
        })
    </script>
</head>
<body>
<div class="am-g">
    <form class="am-form" action="${pageContext.request.contextPath }/UploadServlet" method="post" enctype="multipart/form-data">
        <fieldset>
            <legend>文件上传</legend>

            <div class="am-form-group">
                <label for="doc-ipt-email-1">上传用户</label>
                <input type="text" class="" id="doc-ipt-email-1" placeholder="输入上传用户">
            </div>

            <div class="am-form-group am-form-file">
                <label for="doc-ipt-file-2">文件上传</label>
                <div>
                    <button type="button" class="am-btn am-btn-default am-btn-sm">
                        <i class="am-icon-cloud-upload"></i> 选择要上传的文件</button>
                </div>
                <input type="file" id="doc-ipt-file-2">
            </div>
            <input type="submit" value="提交" class="am-btn am-btn-success am-round">
            &nbsp;&nbsp;
            <button id="cancel" class="am-btn am-btn-warning am-round"> 取消</button>
        </fieldset>
    </form>
    <jsp:include page="../commons/footer.jsp" flush="true"/>
</div>
</body>
</html>